﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Collections;
using System.Timers;


namespace WindowsFormsApplication1.Snake
{
    public enum Deriction
    {
        Up,
        Down,
        Left,
        Right
    }

    public class Block
    {
        int size;
        Color color;
        public Point _point;

        private Point BlockPoint{
            get{
                return this._point;            
            }
        }

        public virtual void Paint(Graphics g)
        {
            SolidBrush sb = new SolidBrush(this.color);
            lock (g)
            {
                g.FillRectangle(sb, this._point.X*this.size, this._point.Y*this.size, this.size - 1, this.size - 1);
            }
        }

        public Block(int size,Color color,Point p)
        {
            this.size = size;
            this.color = color;
            this._point = p;
        }
    }
}
